import { request } from "@/utils/service"

export function getList(data: any) {
  return request({
    url: "/bg/franchisee/getList",
    method: "post",
    data
  })
}

export function updateStatus(data: any) {
  return request({
    url: "/bg/franchisee/updateStatus",
    method: "post",
    data
  })
}

export function saveOrUpdate(data: any) {
  return request({
    url: "/bg/franchisee/saveOrUpdate",
    method: "post",
    data
  })
}

export function getDetailById(data: any) {
  return request({
    url: "/bg/franchisee/getDetailById",
    method: "post",
    data
  })
}

export function batchDelete(data: any) {
  return request({
    url: "/bg/franchisee/batchDelete",
    method: "post",
    data
  })
}

export function getFranchiseeApplyRecordList(data: any) {
  return request({
    url: "/bg/franchisee/getFranchiseeApplyRecordList",
    method: "post",
    data
  })
}

export function examine(data: any) {
  return request({
    url: "/bg/franchisee/examine",
    method: "post",
    data
  })
}

export function getBalanceRecordList(data: any) {
  return request({
    url: "/bg/franchisee/getBalanceRecordList",
    method: "post",
    data
  })
}

export function opaBalance(data: any) {
  return request({
    url: "/bg/franchisee/opaBalance",
    method: "post",
    data
  })
}

